home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Deleting Frames
- Sent: 6/26/96 5:39 PM
- Received: 6/26/96 5:51 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >When I want to delete a FW Frame, what's the recommended way to remove it
- >from my part? Do I delete it directly, do I delete its proxy, do I call
- >the ODFrame->Remove method, or is there another way?
- >
-
- It depends if you want the action to be undoable or not. Be very careful
- if you decide to not make the deletion undoable, if the frame you are
- deleting is the result of a data interchange action (paste, drop) the
- deletion must be undoable because the paste or drop is undoable. If you
- delete your frame without undo you won't be able to undo the paste or
- drop.
-
- Anyway, to delete a frame without undo call
- FW_MProxy::RemoveEmbeddedFrames and then you can remove the proxy from
- your content model and delete it. To delete a frame with undo call
- FW_MProxy::DetachEmbeddedFrames and later on call
- FW_MProxy::AttachEmbeddedFrames. In this case, if the deletion is not
- undone, the frames will be deleted correctly and your command object will
- be called to get rid of the proxy.
-
- All the ODF embedding parts supports removal of embedded frames (with
- undo). We don't have any part supporting removal of embedded frames
- without undo. You need to be very careful and know what you are doing
- before deciding to not support undo.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-